/*
 * @Author: jqgao2
 * @Date: 2022-10-25 09:58:12
 * @LastEditTime: 2022-11-06 20:04:05
 * @Description: 全局组件注册,全局组件必须有name
 * @FilePath: \vue2-ele\src\components\index.js
 * @LastEditors: jqgao2
 */
import Vue from "vue";
import HelloWorld from "@/components/HelloWorld.vue";
import SvgIcon from "@/components/SvgIcon.vue";

const components = [SvgIcon, HelloWorld];

// 注册组件到全局
for (let component of components) {
  Vue.component(`${component.name}`, component);
}
